package com.itheima.service.impl;


import com.itheima.service.HelloService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Value;

@DubboService(version = "1.0")    //1.创建对象交给ioc容器 2.将服务注册到nacos中
public class HelloServiceImpl implements HelloService {

    @Value("${dubbo.protocol.port}")
    private Integer port;


    @Override
    public String sayHello(String name) {
        return "hello" + name;
    }
}
